<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%
// Controle de Sessao
Integer usuarioId   = (Integer) session.getAttribute("id_usuario");
String  usuarioNome = null;

if (usuarioId == null)
{
    response.sendRedirect("index.jsp");
}
else
{
    usuarioNome  = (String) session.getAttribute("nome");
}
// Controle de Sessao
%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Senac - Trabalho 1</title>
        <link   type='text/css' href='css/style.css' rel='stylesheet' media='screen' />
        <script type='text/javascript' src='js/jquery/jquery-1.7.2.min.js'></script>
        <script type='text/javascript' src='js/jquery/plugins/validate/jquery.validate.min.js'></script>
        <script type='text/javascript' src='js/jquery/plugins/validate/additional-methods.min.js'></script>
        <script type='text/javascript' src='js/global.js'></script>
        <script type='text/javascript' src='js/index.js'></script>        
    </head>
    <body>
        <div class="header">
            <div class="header-title">
                <h1>Administração - <%=usuarioNome%></h1>
            </div>
        </div>
        
        <table class="menu">
            <thead>
                <tr>
                    <th>Usuários</th>
                    <th>Telefones</th>
                    <th>Endereços</th>
                    <th>Sair</th>
                </tr>                
            </thead>
            <tbody>
                <tr>
                    <td><a href="usuario_lista.jsp" title="Usuários"><img src="image/menuUser.png" /></a></td>
                    <td><a href="telefone_lista.jsp" title="Telefones"><img src="image/menuPhone.png" /></a></td>
                    <td><a href="endereco_lista.jsp" title="Endereços"><img src="image/menuAddress.png" /></a></td>
                    <td><a href="logout.jsp" title="Sair"><img src="image/menuLogout.png" /></a></td>
                </tr>
            </tbody>
        </table>
    </body>
</html>
